package org.example.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserRedPacket implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO,value = "id")
    private Integer id;//"主键"
    @TableField(value = "user_id")
    private Integer user_id;//"用户ID"
    @TableField(value = "activity_id")
    private Integer activity_id;//"活动ID"
    @TableField(value = "amount")
    private Double amount;//"抢到的金额"
    @TableField(value = "received_at")
    private Date received_at;//"领取时间"
}
